package main

import (
	"fmt"
)

func main() {
	queue := NewStack()
	for i := 0; i < 10; i++ {
		m := new(Link)
		m.Value = i
		m.Next = nil
		queue.Push(m)
	}
	fmt.Println(queue)
	for i := 0 ; i < 10; i++ {
		t := queue.Pop()
		fmt.Println(queue, "POP" , t)
	} 
}